<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="cn.edu.hpu.entity.*"  %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
   
    <title>My JSP 'showDoc.jsp' starting page</title>
    <script type="text/javascript" src="bootstrap/jquery.js"></script>
		<link rel="stylesheet" type="text/css" href="bootstrap/bootstrap.min.css" />
		<style type="text/css">
			body{
				background-image:url("bootstrap/backgroundimg.png");
			}
			
			.div1{
				width:600px;
				height:auto;
				margin-top:10px;
				margin-left:35px;
			
			}
			hr{
			width:600px;
			border:1px solid black;
		}
	</style>
	
  </head>
  
  <body>
  	<div class="div1">
  		<h1>编辑资料</h1>
   		<% 
   			Document d=(Document)request.getAttribute("document"); 
   		 %>
   		 <form action="prod.jspx?method=editDoc" method="post">
   			<input type="hidden" name="did" value="<%=d.getDid()%>"/>
   	 	<fieldset>
					<div class="control-group">
						<label class="control-label" for="input01">标题</label>
						<div class="controls">
							<input type="text" class="span9" id="input01"  name="dtitle" x-webkit-speech="undefined" value="<%=d.getDtitle() %>" style="height:40px"><br/><!--资料标题-->
							
						</div>
						
					</div>
					<div class="control-group">
						<label class="control-label" for="input01">内容</label>
						<div class="controls">
						<textarea name="dcontent" id="" class="span9" rows="15" ><%=d.getDcontent()%></textarea><br/><!--资料的内容-->
						
						
						</div>
					</div>

				<div class="form-actions">
						<input  type="submit" id="btn"  value="edit" class="btn btn-primary">
						
					</div>
				</fieldset>
  	</form>
  </div>
  </body>
</html>
